package com.pine.dbant.plugin.sqlite;

import com.pine.dbant.common.plugin.PluginConfiguration;
import com.pine.dbant.common.plugin.PluginRegister;
import org.springframework.context.annotation.Configuration;

/**
 * @author xiaoyuan
 * @create 2022/11/8 17:20
 **/
@Configuration
public class SqlitePluginConfiguration implements PluginConfiguration {

    @Override
    public PluginRegister registerPlugin() {
        return (pluginFactory, configuration, cacheStore) -> pluginFactory.registerPlugin(new SqliteDatabasePlugin(configuration,cacheStore));
    }
}
